<include file="public@header"/>
</head>
<body>
<div class="layui-fluid js-check-wrap">
    <div class="row">
        <div class="layui-col-xs6">
            <h2>{:lang('ADMIN_AUDITFLOWSTEP_INDEX')}</h2>
        </div>
        <div class="layui-col-xs6 text-right">
            <if condition="in_array('add', $actions)">
                <!-- 添加 -->
                <a href="{:url('AuditFlowStep/add',['audit_id'=>$audit_id])}" class="layui-btn layui-btn-normal">
                {:lang('ADMIN_AUDITFLOWSTEP_ADD')}</a>
            </if>
        </div>
    </div>

    <div class="layui-card-body">
        <table class="layui-table">
            <thead>
            <tr>
                <th width="50">序号</th>
                <th>步骤名称</th>
                <th>审核权限</th>
                <th width="160">{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
            <volist name="result" id="vo">
                <tr>
                    <td>{$vo.step_index}</td>
                    <td>{$vo.step_name}</td>
                    <td>{$vo.auth_role_name}</td>
                    <td>
                        <if condition="in_array('edit', $actions)">
                            <a href="{:url('AuditFlowStep/edit',array('id'=>$vo['step_id']))}">{:lang('EDIT')}</a>
                        </if>
                        <if condition="in_array('delete', $actions)">
                            <a href="{:url('AuditFlowStep/delete',array('id'=>$vo['step_id']))}"
                                class="js-ajax-delete">{:lang('DELETE')}</a>
                        </if>
                    </td>
                </tr>
            </volist>
            </tbody>
        </table>
    </div>
</div>

<script src="__STATIC__/js/admin.js"></script>
</body>
</html>
